<!--<?php
$forum=$cache_forums[$fid];
print <<<EOT
-->
<div class="position"><span>当前位置:</span> {$_SYS['positionindex']} » <a href="search.php">搜索</a></div>
<div class="div_out search">
	<table class="title">
		<tr>
			<td class="left"></td>
			<td><span class="folder_0" id="folder_cond" onclick="changeFolder(this)">搜索条件</span></td>
			<td class="right"></td>
		</tr>
	</table>
	<div class="search_out">
		<div id="search_cond_div">
			<table class="search_cond">
				<tr><th>关键字:</th><td><input type="text" id="keyword" name="keyword" value="{$keyword}" size="40" class="text_css" /> 
				<select name="area" id="area"><option value="1">搜索标题/作者</option>
<!--
EOT;
if(getPopedom(4)==2){
print <<<EOT
-->
<option value="2">全文搜索</option>
<!--
EOT;
}
print <<<EOT
-->
</select>
				</td></tr>
				<tr><th>主题类型:</th><td><input type="radio" value="all" name="topictypestr" class="radio_css" /> 全部主题 &nbsp; <input type="radio" value="normal" name="topictypestr" class="radio_css" /> 普通主题 &nbsp; <input type="radio" value="vote" name="topictypestr" class="radio_css" /> 投票主题 &nbsp; <input type="radio" value="reward" name="topictypestr" class="radio_css" /> 悬赏主题 &nbsp; </td></tr>
				<tr><th>主题特殊:</th><td><input type="radio" value="all" name="topicspc" class="radio_css" /> 全部主题 &nbsp; <input type="radio" value="good" name="topicspc" class="radio_css" /> 精华主题 &nbsp; <input type="radio" value="top" name="topicspc" class="radio_css" /> 置顶主题</td></tr>
				<tr><th>发布时间:</th><td><input type="text" size="11" value="{$starttime}" name="starttime" id="starttime" class="text_css" /> ~ <input type="text" size="11" value="{$stoptime}" name="stoptime" id="stoptime" class="text_css" /> </td></tr>
				<tr><th>搜索范围:</th><td><select id="fid" name="fid" multiple="true" size="10"><option value='0'>所有版块</option>{$cache_forumsoption2}</select></td></tr>
				<tr><th></th><td><input type="button" class="button_css" value="搜 索" onclick="search()" /></td></tr>
			</table>
		</div>
		<div id="search_cond_change"><a href="javascript:changeFolder(E('folder_cond'));">点击展开搜索条件</a></div>
	</div>
</div>

<!--
EOT;
print <<<EOT
-->
<div class="div_clear" style="height:6px;"></div>
<div class="div_out">
	<div class="pagediv">
		<table class="pagetable"><tr><td class="left">一共搜索到 {$pager->recordNum} 条匹配的记录。</td><td class="right">{$pager->getPageStr()}</td></tr></table>
	</div>
	<div class="div_clear" style="height:6px;"></div>
	<div class="">
		<table class="forum_a1">
			<thead><tr><td width="30px">类型</td><td>标题</td><td width="100px" style="text-align:center;">回复 / 人气</td><td width="120px">版块</td><td width="120px">作者/时间</td></tr></thead>

<!--
EOT;
foreach($rows as $row){
print <<<EOT
-->
<tbody><tr><td align="center"><a href="{$row['viewurl']}" target="_blank" title="{$row['icon'][1]}"><img src="images/topic/{$row['icon'][0]}.gif" border="0" /></a></td><td><a class="title" href="{$row['viewurl']}" target="_blank">{$row['title']}</a></td><td style="text-align:center;"><span class="reply">{$row['replynum']}</span> / {$row['hits']}</td><td><a href="{$row['forumurl']}" target="_blank">{$forum['forumname']}</a></td><td><a href="{$row['userurl']}" target="_blank">{$row['username']}</a><br /><span class="time">{$row['posttime']}</span></td></tr></tbody>
<!--
EOT;
}
print <<<EOT
-->
</tr></table>
	</div>
	<div class="div_clear" style="height:6px;"></div>
	<div class="pagediv">
		<table class="pagetable"><tr><td class="left"></td><td class="right">{$pager->getPageStr()}</td></tr></table>
	</div>
</div>
<script type="text/javascript" src="getfiles.php?t=js&v={$_SYS['VERSION']}&f=util|choosedate|popwin|ajax|search"></script>
<script type="text/javascript">
var action="{$action}";
var fid="{$fid}";
var area="{$area}";
var topictypestr="{$topictypestr}";
var topicspc="{$topicspc}";
window.onload = search_InitPage;
</script>
<!--
EOT;
?>
-->